<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{%$web_name%}-后台登录</title>
<link href="{%$URL%}resource/css/login.css" rel="stylesheet" type="text/css" id="cssfile">
<script type="text/javascript" src="{%$URL%}resource/js/jquery.js"></script>
<script type="text/javascript" src="{%$URL%}resource/layer/layer.js"></script>
<script language="javascript">
function newgdcode(obj,url) {
obj.src = url+ '?nowtime=' + new Date().getTime();
//后面传递一个随机参数，否则在IE7和火狐下，不刷新图片
}
</script>
<style type="text/css">
body {
	background-color: #666666;
	background-image: url("");
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-clip: border-box;
	background-size: cover;
	background-origin: padding-box;
	width: 100%;
	padding: 0;
}
</style>
</head>
<body style="background-image: url({%$URL%}resource/images/login/bg_1.jpg);">
<div class="bg-dot"></div>
<div class="login-layout">
  <div class="top">
    <h5>{%$web_name%}<em></em></h5>
    <h2>平台管理中心</h2>
    <h6>会员&nbsp;&nbsp;|&nbsp;&nbsp;订单&nbsp;&nbsp;|&nbsp;&nbsp;统计</h6>
  </div>
  <div class="box">
    <form method="post" id="form_login" action="">
      <span>
      <label>帐号</label>
      <input name="username" id="username" autocomplete="off" type="text" class="input-text" required="" />
      </span> <span>
      <label>密码</label>
      <input name="password" id="password" class="input-password" autocomplete="off" type="password" required="" pattern="[\S]{6}[\S]*" title="密码不少于6个字符" />
      </span> <span>
      <div class="code">
        <div class="arrow"></div>
        <div class="code-img"><img src="../includes/imgcode_admin.php" name="codeimage" id="codeimage" border="0" /></div>
        <a href="JavaScript:void(0);" id="hide" class="close" title="关闭"><i></i></a>
        <a href="JavaScript:void(0);" onClick="javascript:newgdcode(codeimage,document.getElementById('codeimage').src);" class="change" title="看不清,点击更换验证码"><i></i></a> </div>
      <input name="verify" type="text" required="" value="" class="input-code" id="captcha" placeholder="输入验证" pattern="[A-z0-9]{4}" title="验证码为4个字符" autocomplete="off" value="" />
      </span> <span>
      <input name="" class="input-button" type="submit" value="登录" />
      </span>
    </form>
  </div>
</div>
<div class="bottom">
  <h5>Powered by {%$web_name%}</h5>
  <h6 title="{$web_name}">© 2016-2025 <a href="#" target="_blank">{%$web_name%}</a></h6>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
    //Random background image
    var random_bg=Math.floor(Math.random()*4+1);
    var bg='url({%$URL%}resource/images/login/bg_'+random_bg+'.jpg)';
    $("body").css("background-image",bg);
    //Hide Show verification code
    $("#hide").click(function(){
        $(".code").fadeOut("slow");
    });
    $("#captcha").focus(function(){
        $(".code").fadeIn("fast");
    });
    //跳出框架在主窗口登录
   if(top.location!=this.location)	top.location=this.location;
    $('#user_name').focus();
    if ($.browser.msie && $.browser.version=="6.0"){
        window.location.href='adm/ie6update.html';
    }
});
</script>
</html>
